package com.hqd.ch03.v25.spel.ast;

import com.hqd.ch03.v25.spel.standard.ExpressionState;

/**
 * 字符串节点
 */
public class StringLiteral extends SpelNodeImpl {
    private String val;


    public StringLiteral(int startPos, int endPos, String strVal) {
        super(startPos, endPos);
        this.val = strVal;
    }

    @Override
    public Object getValue(ExpressionState state) {
        return val;
    }
}
